package com.ruoyi.controller.pic;

import com.ruoyi.DTO.DdtPicDTO;
import com.ruoyi.Query.DdtPicQuery;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.service.pic.IDdtPicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.ruoyi.common.utils.PageUtils.startPage;

/**
 * @author zsl
 * @Date 2025/6/26
 */
@RestController
@RequestMapping("/pic")
public class PicController {

    @Autowired
    private IDdtPicService ddtPicService;

    //查询图片分页列表
    @GetMapping("/list")
    public AjaxResult list(DdtPicQuery ddtPicQuery){
        startPage();
        List<DdtPicDTO> list = ddtPicService.list(ddtPicQuery);
        return AjaxResult.success(list);
    }


}
